package com.gimhon.login.entity;

import lombok.Data;
import lombok.NonNull;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.validation.constraints.NotBlank;
import java.util.Date;

@Data
@Entity
public class User {

    @Id
    private String userId; //用户ID
    @Column(name = "USERNAME")
    @NonNull
    @NotBlank
    private String username; //账号
    @NotBlank
    @NonNull
    private String password; //密码
    private String nickname; //昵称
    private Date createTime; //创建时间
    private Date updateTime; //更新时间
    private Date lastloginTime; //最后登陆时间
}
